// myclass.js 
   class MyClass { 
   constructor(name) { 
   this.name = name;
} 
sayHello() { 
console.log(`Hello, my name is ${this.name}!`); 
} 
} 
 // 导出类型 
 export { MyClass };